package cz.muni.fi.rum.sender.senders;

import java.io.IOException;

/**
 * Rozhrani slouzi k posilani a prijimani RAP messages.
 * jednoduse posle do streamu string a pote ceka na response a tu vrati
 * @since v1.1
 * @version v1.0
 * @author pmikulasek
 */
public interface MessageSender {

    /**
     * Metoda posle vlozeny request a vraci response do jiz otevrenych streamu.
     * @param request
     * @return response
     * @throws IOException V pripade nejake chyby pri zapisu nebo cteni ze streamu.
     */
    String send(String request) throws IOException;
}
